package backstage.app.entity;

import java.io.Serializable;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/***
 * 学员表
 * @author xwt
 *
 */
@TableName("no_student")
@Data
public class NoStudent  implements Serializable{
	
	 
	/**
	 * 
	 */
	private static final long serialVersionUID = 4659269471162323368L;

	@TableId(type= IdType.AUTO)
	@TableField("sid")
	private Integer sid;
	
	@TableField("name")
    private String name;

	@TableField("sex")
    private String sex;

    @TableField("birthday")
   	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private Date birthday;

    @TableField("age")
    private Integer age;

    @TableField("phone")
    private String phone;

    @TableField("export_flg")
    private Integer exportFlg;

    @TableField("lable_type")
    private Integer lableType;

    @TableField("create_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField("last_update_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastUpdateTime;

    @TableField("student_type")
    private Integer studentType; 
    
    @TableField(exist = false)
    private NoStudentType typeStudent;
    
    @TableField(exist = false)
    private String typeName;
    
}